package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysAndrology;
import com.jinghua.treatment.entity.SysGynaecology;
import com.jinghua.treatment.mapper.SysGynaecologyMapper;
import com.jinghua.treatment.service.SysAndrologyService;
import com.jinghua.treatment.service.SysGynaecologyService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 妇科业务接口实现类
 * Created by 王兴光 on 2018/3/26.
 */
@Service("gynaecologyService")
public class SysGynaecologyServiceImpl implements SysGynaecologyService{

    @Resource
    private SysGynaecologyMapper gynaecologyMapper;

    @Override
    public SysGynaecology selectByPrimaryKey(Integer andrologyId) {
        return gynaecologyMapper.selectByPrimaryKey(andrologyId);
    }

    @Override
    @Transactional
    public int insert(SysGynaecology record) {
        return gynaecologyMapper.insert(record);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(SysGynaecology record) {
        return gynaecologyMapper.updateByPrimaryKey(record);
    }
}
